<ui:composition         
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:ds="http://deltaset.org/deltaset-faces"
    xmlns:h="http://java.sun.com/jsf/html" 
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:p="http://primefaces.org/ui">

    <h1 class="title ui-widget-header ui-corner-all">FileUpload - Drag and Drop</h1>
    <div class="entry">
        <p>In supported browsers, a file can be selected by dragdrop from filesystem. FileUpload component itself
            is the drop zone.</p>

        <h:form enctype="multipart/form-data">

            <p:fileUpload fileUploadListener="#{fileUploadController.handleFileUpload}" 
                          mode="advanced"
                          auto="false"                         
                          update="messages" 
                           />  

            <p:messages id="messages" showDetail="true"/>

            #{fileUploadController.something}

        </h:form>

        <h:form enctype="multipart/form-data">  

            <p:messages showDetail="true"/>  

            <p:fileUpload value="#{fileUploadController.file}" mode="simple"/>  

            <p:commandButton value="Submit" ajax="false"  
                             actionListener="#{fileUploadController.upload}"/>  

        </h:form> 
    </div>
</ui:composition>   
